package com.zzzzzz.content.topic;

import org.hibernate.validator.constraints.NotBlank;


public class TopicReviewForm {
	@NotBlank
	private String title;
	@NotBlank
	private String textS;
	@NotBlank
	private String review;
	@NotBlank
	private String tags;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}

	public String getTextS() {
		return textS;
	}
	public void setTextS(String textS) {
		this.textS = textS;
	}

	public String getReview() {
		return review;
	}
	public void setReview(String review) {
		this.review = review;
	}

	public String getTags() {
		return tags;
	}
	public void setTags(String tags) {
		this.tags = tags;
	}

	public void updateTopic(Topic topic){
		topic.setTitle(this.getTitle());
		topic.setTextS(this.getTextS());
		topic.setReview(this.getReview());
		topic.setTags(this.getTags());
	}

	public void updateTopicReviewForm(Topic topic){
		this.setTitle(topic.getTitle());
		this.setTextS(topic.getTextS());
		this.setReview(topic.getReview());
		this.setTags(topic.getTags());
	}
}
